#ifndef DRAWWIDGET_H
#define DRAWWIDGET_H

#include <QWidget>

class drawWidget : public QWidget
{
    Q_OBJECT
public:
    explicit drawWidget(QWidget *parent = nullptr);

protected:
    void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;

signals:

private:
    void setpixel(QRgb* pixels, int x, int y);
    void Bresenham(QRgb* pixels, int x0, int y0, int x1, int y1);

    QColor _color;
};

#endif // DRAWWIDGET_H
